package enums;

public class TestEnum {

	public static void main(String[] args) {
		testSimple();
		// ---------
		// testValues();
		testMonth();
	}

	private static void testValues() {
		for (Day d : Day.values()) {
			System.out.println(d);
		}
		System.out.println("--------");
		for (Month m : Month.values()) {
			System.out.println(m);
		}
	}

	private static void testSimple() {
		Day day = Day.SUN;
		System.out.println(day);

		System.out.println("--------");
		Month m = Month.FEB;
		System.out.println(m);
	}

	private static void testMonth() {
		Month m = Month.FEB;

		System.out.println(m.num());
		System.out.println(Month.JAN.num());
		
	}
}
